package company.permissionsystem.security.roleassignment.factory;

import company.permissionsystem.security.roleassignment.PermissionAssignment;
import company.permissionsystem.security.roleassignment.PowerAssignment;

/**
 *  管理员权力类
 * */
public class AdminRole implements PowerAssignment {

    private String roleName;

    public AdminRole(String roleName) {
        this.roleName = roleName;
    }

    @Override
    public PermissionAssignment op() {
        PermissionAssignment permissionAssignment = new PermissionAssignment();
        permissionAssignment.setDruidMonitoring(true);
        permissionAssignment.setSwaggerMonitoring(true);
        permissionAssignment.setAdminMonitoring(true);
        return permissionAssignment;
    }

}
